package com.woniuxy.project115.kaer.user.feign;

import com.woniuxy.project115.kaer.commons.util.Result;
import com.woniuxy.project115.kaer.user.dto.UserInfoDto;
import com.woniuxy.project115.kaer.user.form.ScoreChangeForm;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(name = "user-server")
public interface UserFeignClient {
    @GetMapping("/user/userInfo/getUserInfoScore")
    public Result<Integer> getUserInfo(@RequestParam("userId") Integer userId);

    @PostMapping("/user/userInfo/scoreChange")
    public Result scoreChange(@RequestBody ScoreChangeForm scoreChangeForm);

    @GetMapping("/user/userInfo/getUserById")
    public Result<UserInfoDto> getAllUserInfo(@RequestParam("userId")Integer userId);

}
